import React, { Component } from 'react';
import { View} from '@tarojs/components';
import Header from './components/Header';
import TodoList from './components/TodoList';
import './index.less';
export default class Index extends Component {

  state={
    name:'fanjiantao',
  }

  data=[
    1,
    2,3,4,5
  ]

  componentWillMount () {}

  componentDidMount () {}

  componentWillUnmount () {}

  componentDidShow () {}

  componentDidHide () {}
  
  click=()=>{
    this.setState({name:Math.random().toString(16).slice(2)});
  }
  render () {
    // let childDom = <View>hello</View>
    return (
      <View className='home'>
        <Header></Header>
        <TodoList dataList={this.data}/>
      </View>
    )
  }
}
